package com.jams.goodox.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by jams on 2016/8/31.
 * ***
 * Tel: ***
 */

public class Neighborhood implements Serializable {
    private String id;  //邻里ID
    private User userSimple;  //发布人员信息
    private String topicContent;  //邻里内容
    private String intime;  //发布时间
    private List<AnnexBean> annexs;//发布的图片list
    private String beginTime;//局、群活动开始的时间
    private String replayTime;//最近的回复时间
    private Integer topicPraise;//点赞、报名人数
    private String topicTag;//标签
    private Integer topicMsgcnt;//评论数量
    private String price;//拼的价格
    private Integer referType;//局、圈、拼、群的类型(局 0，圈1，拼2，群3)
    private String referName;//群的名称
    private boolean isPraise;//是否已加入、已点赞
    private Integer childType;//群的类型（0 话题，1 活动）
    private String referId;//邻里关联群或者微店ID
    private int activityStatus;//活动状态(0：未开始，1：已开始)
    private int topicIsHot;//(1 代表是，0 代表否)

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public User getUserSimple() {
        return userSimple==null?new User():userSimple;
    }

    public void setUserSimple(User userSimple) {
        this.userSimple = userSimple;
    }

    public String getTopicContent() {
        return topicContent;
    }

    public void setTopicContent(String topicContent) {
        this.topicContent = topicContent;
    }

    public String getIntime() {
        return intime;
    }

    public void setIntime(String intime) {
        this.intime = intime;
    }

    public List<AnnexBean> getAnnexs() {
        return annexs;
    }

    public void setAnnexs(List<AnnexBean> annexs) {
        this.annexs = annexs;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getReplayTime() {
        return replayTime;
    }

    public void setReplayTime(String replayTime) {
        this.replayTime = replayTime;
    }

    public Integer getTopicPraise() {
        return topicPraise;
    }

    public void setTopicPraise(Integer topicPraise) {
        this.topicPraise = topicPraise;
    }

    public String getLabel() {
        return topicTag;
    }

    public void setLabel(String label) {
        this.topicTag = label;
    }

    public Integer getTopicMsgcnt() {
        return topicMsgcnt;
    }

    public void setTopicMsgcnt(Integer topicMsgcnt) {
        this.topicMsgcnt = topicMsgcnt;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Integer getReferType() {
        return referType;
    }

    public void setReferType(Integer referType) {
        this.referType = referType;
    }

    public boolean isPraise() {
        return isPraise;
    }

    public void setPraise(boolean praise) {
        isPraise = praise;
    }

    public Integer getChildType() {
        if(childType == null){
            return 0;
        }
        return childType;
    }

    public void setChildType(Integer childType) {
        this.childType = childType;
    }

    public String getReferId() {
        return referId;
    }

    public void setReferId(String referId) {
        this.referId = referId;
    }

    public String getReferName() {
        return referName;
    }

    public void setReferName(String referName) {
        this.referName = referName;
    }

    public int getActivityStatus() {
        return activityStatus;
    }

    public void setActivityStatus(int activityStatus) {
        this.activityStatus = activityStatus;
    }


    public int getTopicIsHot() {
        return topicIsHot;
    }

    public void setTopicIsHot(int topicIsHot) {
        this.topicIsHot = topicIsHot;
    }
}
